﻿using System;
using System.Windows.Forms;
using Server.Model;

namespace Server.Menus
{
    public partial class OtherInformation : Form
    {
        private readonly ServerData _serv;

        public OtherInformation( ServerData serv )
        {
            _serv = serv;
            InitializeComponent( );
        }

        private void OKbtn_Click( object sender, EventArgs e )
        {
            Hide( );
        }

        private void OtherInformation_Activated( object sender, EventArgs e )
        {
            currentTicket.Text = _serv.TicketNumber.ToString( );
            primaryServers.Text = _serv.ServersInformation.PrimaryId;
            logicalClock.Text = _serv.ServerLogicalClock.ToString( );
        }
    }
}